# -*- codeing = utf-8 -*-
# @Time : 2021/2/25 15:52
# @Atuthor: 朱朱
# @File: 094math模块介绍.py
# @Software: PyCharm
# 数学计算相关的模块
import math

print(math.factorial(6))        # 阶乘
print(math.pow(2, 10))          # 取幂

print(math.floor(12.98))        # 向下取整
print(math.floor(-12.98))       # 向下小于
print(math.ceil(15.0001))       # 向上取整
print(math.ceil(-15.0001))      # 向上大于

print(round(143.22444, 2))      # 四舍五入
print(round(143.22544, 2))

print(math.sin(math.pi / 6))    # 弧度函数
print(math.cos(math.pi / 3))
print(math.tan(math.pi / 2))